package rmi;

import java.net.MalformedURLException;
import java.rmi.AlreadyBoundException;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;

/**
 * @Author: admin
 * @Description:
 * @Date: 2018/11/19 9:00
 */

public class RmiServer {
    public static void main(String[] args) throws RemoteException,
            AlreadyBoundException, MalformedURLException {
        RmiService rmiService=new RmiServiceImpl();
        LocateRegistry.createRegistry(9099);
        Naming.bind("rmi://192.168.0.27:9099/RmiService",rmiService);
    }

}
